<script context="module">
	export function preload({ params }) {
		return this.fetch(`blog/${params.slug}.json`).then(r => r.json()).then(post => {
			return { post };
		});
	}
</script>

<script>
	export let post;
</script>

<h1>{post.title}</h1>